package com.gite.nouette.admin.implementation.integrator.assembler;

import com.gite.nouette.admin.contract.integrator.assembler.IAssemblerModule;
import com.gite.nouette.admin.contract.model.IManager;

public abstract class AbstractAssemblerModule implements IAssemblerModule {
	private IManager parentProduct;

	@Override
	public IManager getParentProduct() {
		return this.parentProduct;
	}

	@Override
	public void setParentProduct(IManager parentProduct) {
		this.parentProduct = parentProduct;
	}

	@Override
	public void run() {
		getDirector().constructProduct();
		getParentProduct().addModule(getDirector().getProduct());
	}

}
